From b344267e6ccf4a059b3c34c1824ff5ddc4ab08ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 18 May 2017 10:09:39 +0200 Subject: [PATCH] button: Don't care about sizing if no child is set We don't need to care in this case since the default values should always be assumed to be 0, and setting a baseline of 0 is just wrong when orientation == HORIZONTAL, it should be -1 (or unset). --- gtk/gtkbutton.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 149de66006..5432c49be8 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -931,15 +931,6 @@ gtk_button_measure_ (GtkWidget *widget, minimum, natural, minimum_baseline, natural_baseline); } - else - { - *minimum = 0; - *natural = 0; - if (minimum_baseline) - *minimum_baseline = 0; - if (natural_baseline) - *natural_baseline = 0; - } } /** -- 2.30.2